var Player = Class.extend({
	init : function() {
		this.weapons = [];
		this.money = 0;
		this.currentWeapon = 0;
		this.points = 0;
		this.doubleDamage = false;
		this.totalHeadshots = 0; // new
		this.totalBulletsFired = 0; // new
		this.totalBulletsHit = 0; // new
		this.totalMoneyGained = 0; // new
		this.headshotStreak = 0; // new
		this.damageMultiplicator = 1;
		this.doubleDamageTimer;
	},
	setDoubleDamage : function(period) { // new period in seconds
		this.damageMultiplicator = 2;
		setTimeout(player.clearDoubleDamage, period * 1000);
	},
	clearDoubleDamage : function() { // new
		player.damageMultiplicator = 1;
	}

	,
	addPointsKill : function(coeficient) {
		this.points += Player.ACTION_KILL * coeficient;
	},
	addPointsHit : function(headshot, coeficient) {
		if (headshot) {
			this.points += Player.ACTION_HEADSHOT * coeficient;
		}
		this.points += Player.ACTION_HIT * coeficient;
	}

});
Player.ACTION_HIT = 5;
Player.ACTION_HEADSHOT = 10;
Player.ACTION_KILL = 20;
